package com.nidu.demo.tenant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.tenant.mapper.dataobject.TenantDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TenantMapper extends BaseMapper<TenantDO> {

    @Select("SELECT * FROM sys_tenant WHERE name = #{name} LIMIT 1")
    TenantDO selectByName(String name);
}